set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)

cmake_minimum_required(VERSION 3.20)
project(har-mpu6500 LANGUAGES C CXX VERSION 0.1.0)

set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

file(GLOB SRC_FILES "./src/*.cpp")

set(MNN_INSTALL_PREFIX "../../GithubLibs/MNN/install_x64")

add_executable(${PROJECT_NAME} ${SRC_FILES})
target_include_directories(${PROJECT_NAME} PRIVATE "${MNN_INSTALL_PREFIX}/include" "./src")
target_link_directories(${PROJECT_NAME} PRIVATE "${MNN_INSTALL_PREFIX}/lib")
target_link_libraries(${PROJECT_NAME} PRIVATE MNN)
